package com.sc.nft.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
public enum JumpTypeEnum {

    SELF_APP(1,"app"),
    SELF_H5(2,"H5"),
    ;

    @EnumValue
    private int code;
    private String desc;

    public static JumpTypeEnum getCode(Integer code){
        for (JumpTypeEnum value : values()){
            if(value.getCode() == code){
                return value;
            }
        }
        return null;
    }

}
